package com.jycj.java.study;

public class ClassRoom {

    private int cId; //教室 id
    private String cName; //教室 名称
    private int seat; // 教室 座位

    //构造函数
    public ClassRoom() {
        init();
    }

    public ClassRoom(int cId, String cName) {
        this.cId = cId;
        this.cName = cName;
        init(this.cId, this.cName);
    }

    public void init() {
        System.out.println("教室初始化!");
    }

    public void init(int id, String cName) {
        System.out.println("教室初始化,教室id为" + id + "，教室名为" + cName);
    }

    public static void main(String[] args) {
        ClassRoom room2204 = new ClassRoom();
        ClassRoom room2304 = new ClassRoom(2304,"软件开发实训室");
    }
}